<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/sncss/js/jquery.js"></script>
<link href="__PUBLIC__/admin/sncss/css/combo.select.css" rel="stylesheet" type="text/css" />


</head>


<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
		<li><a>首页</a></li>
		<li><a>自媒体管理</a></li>
		<li><a>充值记录</a></li>
		</ul>
		</div>

		<div class="rightinfo">
		<div class="tools">

		<form id="form1" name="form1" method="get" action="{:U('/Home/Media/income_list')}">
			<div style="float: left; margin-bottom: 15px;">
				<input name="user_name" style="height: 38px;" type="text" class="dfinput" placeholder="搜索自媒体名称/手机号" id="user" value="<?php echo $user_name;?>" />
			</div>
			<div style="float: left; margin-bottom: 15px;">
				<input name="" style="height: 40px;" type="submit" class="btn" value="搜索"/>
			</div>
		</form>

		</div>
		<table class="tablelist">
			<thead>
			<tr>
				<th width="5%">ID</th>
				<th>自媒体名称<i class="sort"><img src="__PUBLIC__/admin/sncss/images/px.gif" /></i></th>
				<if condition="$founder neq 4"><th>自媒体手机号</th></if>
				<th>签约主播</th>
				<!--<if condition="$founder neq 3"><th>主播手机号</th></if>-->
				<th>自媒体签约等级</th>
				<th>充值字数</th>
				<th>充值价格</th>
				<th>充值时间</th>
				<th>操作</th>
				</tr>
				</thead>
				<tbody>

		<volist name='income_list' id='v'>
				<tr>
					<td>{$v.mmid}</td>
					<td>{$v.media_name}</td>
					<if condition="$founder neq 4"><td>{$v.media_tel}</td></if>
					<td><if condition="$v.uuid neq '' || $v.uuid neq 0" >{$v.nickname}({$v.uuid})<else/>无</if></td>
					<!--<if condition="$founder neq 3"><td>{$v.username}</td></if>-->
					<td>
						<switch name="v.level">
							<case value="5">顶级</case>
							<case value="6">知名</case>
							<case value="7">优质</case>
							<default />未知
						</switch>
					</td>
					<td>{$v.money}</td>
					<td>{$v.signmoney}</td>
					<td>{$v.creationtime}</td>
					<td><a href="javascript:void(0);" onclick="collectuser(<?php echo $v['id'];?>)" class="tablelink">签约</a></td>
				</tr>
			 </volist>
				</tbody>
		</table>
		<style>.pages a,.pages span {
		display:inline-block;
		padding:2px 5px;
		margin:0 1px;
		border:1px solid #f0f0f0;
		-webkit-border-radius:3px;
		-moz-border-radius:3px;
		border-radius:3px;
}
.pages a,.pages li {
		display:inline-block;
		list-style: none;
		text-decoration:none; color:#58A0D3;
}
.pages a.first,.pages a.prev,.pages a.next,.pages a.end{
		margin:0;
}
.pages a:hover{
		border-color:#50A8E6;
}
.pages span.current{
		background:#50A8E6;
		color:#FFF;
		font-weight:700;
		border-color:#50A8E6;
}</style>

	 <div class="pages"><br />

												<div align="right">{$page}
												</div>
	 </div>

		</div>



</body>
<script src="__PUBLIC__/admin/Js/jquery-1.7.2.min.js"></script>
<script src="__PUBLIC__/admin/Js/jquery.combo.select.js"></script>
<script src="__PUBLIC__/layer/layer.js"></script>
<script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	$(function() {
		$('#u1_input').comboSelect();
		$('#u2_input').comboSelect();
		$('#u3_input').comboSelect();
		$('#u4_input').comboSelect();
	});
    function collectuser(id){
        layer.open({title: false, type: 1, area: ['400px', '200px'], //宽高
            content: '<div class="mainlist" style="padding:30px;"><form id="form2" name="form2" method="post" action="/Home/User/user_binding" onsubmit="return form2_submit();">'
            +'<input id="uuid" name="uuid" class="dfinput" value="" />'
            +'<input name="mediaid"  type="hidden" class="dfinput" value="'+id+'" />'
            +'<br><br><input type="submit" class="btn" value="签约"/></form></div>'
        });
    }
    function form2_submit(){
        var uuid= $('#uuid').val();
        if(uuid.length==0){
            layer.msg('必须填主播编号');return false;
            // alert('必须填写理由');return false;
        }
    }
</script>
</html>
